package com.xzr.hospitalregister.config;

//import com.it.xzr.homedoctorprotocol.entity.SomethingNeed;

import com.xzr.hospitalregister.entity.SomethingNeed;

/**
 * Created by Administrator on 2017/8/1.
 */

public class HttpUrl {

//    /**
//     * 最新版本APK版本号信息获取
//     */
//    public static String VERSION_CODE_INFO ="http://192.168.1.90:8080/query/VersionNum";
//    /**
//     * 最新版本APK下载
//     */
//    public static String LASTEST_VERSION_APK_DOWNLOAD ="http://192.168.1.90:8080/onload/apk";
//
//    public static final String BASE_ADDRESS = "http://192.168.1.90:8080/";
////public static final String BASE_ADDRESS = "http://192.168.1.133:8078/";
////    public static final String MEN_ZHEN_GUA_HAO = BASE_ADDRESS + "YDYL_SERVLET/servlet/JhxtServlet";
//public static final String MEN_ZHEN_GUA_HAO = BASE_ADDRESS + "JHXT/servlet/JhxtServlet";


    public static String BASE_ADDRESS;
    public static String MEN_ZHEN_GUA_HAO;
    public static String HOSPITAL_NAME;/////////////////

    /**
     * 最新版本APK版本号信息获取
     */
    public static String VERSION_CODE_INFO;

    /**
     * 最新版本APK下载
     */
    public static String LASTEST_VERSION_APK_DOWNLOAD;
    static {
        initUrl();
    }

    public static void initUrl() {
//        BASE_ADDRESS = "http://192.168.1.169:8088/";//博爱妇幼
//        BASE_ADDRESS = "http://192.168.0.90:8080/";
//        BASE_ADDRESS = "http://192.168.0.77:8078/";
//        BASE_ADDRESS = "http://192.168.0.251:8080/";
//        BASE_ADDRESS = "http://192.168.124.128:8080/";
        BASE_ADDRESS = "http://" + SomethingNeed.getInstance().getIp();
        MEN_ZHEN_GUA_HAO = BASE_ADDRESS + "/JHXT/servlet/JhxtServlet";
//        MEN_ZHEN_GUA_HAO = BASE_ADDRESS + "JHXT/servlet/JhxtServlet";

        HOSPITAL_NAME=SomethingNeed.getInstance().getHos();//////
//        VERSION_CODE_INFO = BASE_ADDRESS + "/query/VersionNum";
//        LASTEST_VERSION_APK_DOWNLOAD = BASE_ADDRESS + "/onload/apk";


        VERSION_CODE_INFO = BASE_ADDRESS + "/JHXT/servlet/VersionServlet";
        LASTEST_VERSION_APK_DOWNLOAD = BASE_ADDRESS + "/JHXT/servlet/DownloadFileServlet?filename=";
    }

}
